class {
    onInput(input) {
        this.state = {}
    }
}

<div>
    Hello ${state.name || ''}!
</div>